home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 50
/
Aminet 50 (2002)(GTI - Schatztruhe)[!][Aug 2002].iso
/
Aminet
/
text
/
edit
/
tecoc-146.lha
/
tstpw.tec
< prev
next >
Wrap
Text File
|
1991-07-05
|
5KB
|
415 lines
Test the PW command. This macro, in conjunction with the TSTY.TEC
macro, test basic file input and output. The P, N, _ and A commands are
special cases of basic file input and output, and should be tested after
the PW and Y commands.
This macro tests the PW command with empty edit buffers, full ones
with the gap at the beginning, middle and end, and with lines containing
CR/LF, ESC/CR/LF, FF, and VT, and empty lines, with the gap at various places.
If this macro executes without error, the only thing that can be said
is that the file output code hasn't bombed, not that file output works.
You should run the TSTY.TEC macro after running this one. TSTY.TEC will
read the files output by this macro and verify that the contents are correct.
Of course, that macro tests file input, so if it fails, the error could be
in either file input or file output code.
Please strike any key to continue, or ^A to exit
Test file output commands.
Test output when edit buffer is empty
ewE1.TpwefewE2.TpwefewE3.Tpwpwpwef
Test buffer full (contains "test"), CP at beginning of buffer
itestj
ewTB1.Tpwef
ewTB2.Tpwef
ewTB3.Tpwpwpwef
ewTB4.Thpwef
ewTB5.Thpef
ewTB6.T,3pef
ewTB7.T,3pwef
Test buffer full (contains "test"), CP at middle of buffer
2c
ewTM1.Tpwef
ewTM2.Tpwef
ewTM3.Tpwpwpwef
ewTM4.Thpwef
ewTM5.Thpef
ewTM6.T,3pef
ewTM7.T,3pwef
Test buffer full (contains "test"), CP at end of buffer
zj
ewTE1.Tpwef
ewTE2.Tpwef
ewTE3.Tpwpwpwef
ewTE4.Thpwef
ewTE5.Thpef
ewTE6.T,3pef
ewTE7.T,3pwef
Test buffer containing CR/LFs, CP at beginning of buffer
hkitest1
test2
test3
j
ewCB1.Tpwef
ewCB2.Tpwef
ewCB3.Tpwpwpwef
ewCB4.Thpwef
ewCB5.Thpef
ewCB6.T,3pef
ewCB7.T,3pwef
Test buffer containing CR/LFs, CP before a CR
s1
ewCBC1.Tpwef
ewCBC2.Tpwef
ewCBC3.Tpwpwpwef
ewCBC4.Thpwef
ewCBC5.Thpef
ewCBC6.T,3pef
ewCBC7.T,3pwef
Test buffer containing CR/LFs, CP before an LF
c
ewCBL1.Tpwef
ewCBL2.Tpwef
ewCBL3.Tpwpwpwef
ewCBL4.Thpwef
ewCBL5.Thpef
ewCBL6.T,3pef
ewCBL7.T,3pwef
Test buffer containing CR/LFs, CP after an LF
c
ewCAL1.Tpwef
ewCAL2.Tpwef
ewCAL3.Tpwpwpwef
ewCAL4.Thpwef
ewCAL5.Thpef
ewCAL6.T,3pef
ewCAL7.T,3pwef
Test buffer containing CR/LFs, CP at end of buffer
zj
ewCE1.Tpwef
ewCE2.Tpwef
ewCE3.Tpwpwpwef
ewCE4.Thpwef
ewCE5.Thpef
ewCE6.T,3pef
ewCE7.T,3pwef
Test buffer containing ESC/CR/LFs, CP at beginning of buffer
hk@i/test1test2test3/j
ewDB1.Tpwef
ewDB2.Tpwef
ewDB3.Tpwpwpwef
ewDB4.Thpwef
ewDB5.Thpef
ewDB6.T,3pef
ewDB7.T,3pwef
Test buffer containing ESC/CR/LFs, CP before an ESC
s1
ewDBD1.Tpwef
ewDBD2.Tpwef
ewDBD3.Tpwpwpwef
ewDBD4.Thpwef
ewDBD5.Thpef
ewDBD6.T,3pef
ewDBD7.T,3pwef
Test buffer containing ESC/CR/LFs, CP before a CR
c
ewDBC1.Tpwef
ewDBC2.Tpwef
ewDBC3.Tpwpwpwef
ewDBC4.Thpwef
ewDBC5.Thpef
ewDBC6.T,3pef
ewDBC7.T,3pwef
Test buffer containing ESC/CR/LFs, CP before an LF
c
ewDBL1.Tpwef
ewDBL2.Tpwef
ewDBL3.Tpwpwpwef
ewDBL4.Thpwef
ewDBL5.Thpef
ewDBL6.T,3pef
ewDBL7.T,3pwef
Test buffer containing ESC/CR/LFs, CP after an LF
c
ewDAL1.Tpwef
ewDAL2.Tpwef
ewDAL3.Tpwpwpwef
ewDAL4.Thpwef
ewDAL5.Thpef
ewDAL6.T,3pef
ewDAL7.T,3pwef
Test buffer containing ESC/CR/LFs, CP at end of buffer
zj
ewDE1.Tpwef
ewDE2.Tpwef
ewDE3.Tpwpwpwef
ewDE4.Thpwef
ewDE5.Thpef
ewDE6.T,3pef
ewDE7.T,3pwef
Test buffer containing FFs, CP at beginning of buffer
hkitest1iitest2
j
ewFB1.Tpwef
ewFB2.Tpwef
ewFB3.Tpwpwpwef
ewFB4.Thpwef
ewFB5.Thpef
ewFB6.T,3pef
ewFB7.T,3pwef
Test buffer containing FFs, CP before an FF
s1
ewFBF1.Tpwef
ewFBF2.Tpwef
ewFBF3.Tpwpwpwef
ewFBF4.Thpwef
ewFBF5.Thpef
ewFBF6.T,3pef
ewFBF7.T,3pwef
Test buffer containing FFs, CP after an FF
c
ewFAF1.Tpwef
ewFAF2.Tpwef
ewFAF3.Tpwpwpwef
ewFAF4.Thpwef
ewFAF5.Thpef
ewFAF6.T,3pef
ewFAF7.T,3pwef
Test buffer containing FFs, CP at end of buffer
zj
ewFE1.Tpwef
ewFE2.Tpwef
ewFE3.Tpwpwpwef
ewFE4.Thpwef
ewFE5.Thpef
ewFE6.T,3pef
ewFE7.T,3pwef
Test buffer containing VTs, CP at beginning of buffer
hkitest1itest2
j
ewVB1.Tpwef
ewVB2.Tpwef
ewVB3.Tpwpwpwef
ewVB4.Thpwef
ewVB5.Thpef
ewVB6.T,3pef
ewVB7.T,3pwef
Test buffer containing VTs, CP before a VT
s1
ewVBV1.Tpwef
ewVBV2.Tpwef
ewVBV3.Tpwpwpwef
ewVBV4.Thpwef
ewVBV5.Thpef
ewVBV6.T,3pef
ewVBV7.T,3pwef
Test buffer containing VTs, CP after a VT
c
ewVAV1.Tpwef
ewVAV2.Tpwef
ewVAV3.Tpwpwpwef
ewVAV4.Thpwef
ewVAV5.Thpef
ewVAV6.T,3pef
ewVAV7.T,3pwef
Test buffer containing VTs, CP at end of buffer
zj
ewVE1.Tpwef
ewVE2.Tpwef
ewVE3.Tpwpwpwef
ewVE4.Thpwef
ewVE5.Thpef
ewVE6.T,3pef
ewVE7.T,3pwef
Done.
hkex